<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    function newAray(a,b){
        var arr=[]
        for(i=a;i<=b;i++){
            if(i%3==0&&i%5==0){
                arr.push(i)
            }
        }
        return arr
    }
    var brr= newAray(1,40)
    document.write(brr)
</script>